<template>

</template>

<script setup>
onMounted(() => {
  socket.on('message', (message) => {
    if (message.type === 'system') {
      messages.value.push(message);
      scrollToBottom();
    } else if (message.type === 'user') {
      messages.value.push(message);
      scrollToBottom();
    }
  });
});
</script>

<style scoped></style>